/**
 * @Author IT杨
 * @Create Time 2019/5/22
 * @Description:
 */
import axios from '@/libs/api.request'
import config from '@/config'

const yurl = config.baseUrl.dev_y + 'v1/'

/**
 * 获取案例列表
 * @param {*} formData
 */
export const getCaseList = formData => {
  return axios.request({
    url: yurl + 'caseList',
    method: 'get',
    data: formData
  })
}

export const saveCase = formData => {
  return axios.request({
    url: yurl + 'case/save',
    method: 'post',
    data: formData
  })
}

export const caseDelete = id => {
  return axios.request({
    url: yurl + 'case/' + id,
    method: 'delete',
    data: {}
  })
}
